package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sf.json.JSONObject;

import com.bringway.p2p.dao.VersionDao;
import com.bringway.p2p.service.VersionService;

/**
 * 
 * @author qjy
 * @version 创建时间：2016年5月8日 上午9:34:42
 * @功能：版本管理
 */

@Service
@Transactional
public class VersionServiceImpl implements VersionService {
	
	@SuppressWarnings("unused")
	@Autowired
	private VersionDao versiondao;

	@Override
	public List<Map<String, Object>> queryVersionList(JSONObject params) {
		
		return versiondao.queryVersionList(params);
	}

	@Override
	public int getVersionCount(JSONObject params) {
		return versiondao.getVersionCount(params);
	}
	
	@Override
	public boolean updateVersion(JSONObject params) {
		return 	versiondao.updateVersion(params)>0;
	}
	
	@Override
	public boolean addVersion(JSONObject params) {
		return versiondao.addVersion(params)>0;
	}


}
